/*
 * Copyright 2019 The FATE Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.fedai.eggroll.core.grpc;


public class GrpcChannelInfo {

    int keepAliveTime;
    int keepAliveTimeout;
    boolean keepAliveWithoutCalls = true;
    int idelTimeOut;
    int perRpcBufferLimit;

    public int getKeepAliveTime() {
        return keepAliveTime;
    }

    public void setKeepAliveTime(int keepAliveTime) {
        this.keepAliveTime = keepAliveTime;
    }

    public int getKeepAliveTimeout() {
        return keepAliveTimeout;
    }

    public void setKeepAliveTimeout(int keepAliveTimeout) {
        this.keepAliveTimeout = keepAliveTimeout;
    }

    public boolean isKeepAliveWithoutCalls() {
        return keepAliveWithoutCalls;
    }

    public void setKeepAliveWithoutCalls(boolean keepAliveWithoutCalls) {
        this.keepAliveWithoutCalls = keepAliveWithoutCalls;
    }

    public int getIdelTimeOut() {
        return idelTimeOut;
    }

    public void setIdelTimeOut(int idelTimeOut) {
        this.idelTimeOut = idelTimeOut;
    }

    public int getPerRpcBufferLimit() {
        return perRpcBufferLimit;
    }

    public void setPerRpcBufferLimit(int perRpcBufferLimit) {
        this.perRpcBufferLimit = perRpcBufferLimit;
    }

    public int getFlowControlWindow() {
        return flowControlWindow;
    }

    public void setFlowControlWindow(int flowControlWindow) {
        this.flowControlWindow = flowControlWindow;
    }

    public int getMaxInboundMessageSize() {
        return maxInboundMessageSize;
    }

    public void setMaxInboundMessageSize(int maxInboundMessageSize) {
        this.maxInboundMessageSize = maxInboundMessageSize;
    }

    public int getRetryBufferSize() {
        return retryBufferSize;
    }

    public void setRetryBufferSize(int retryBufferSize) {
        this.retryBufferSize = retryBufferSize;
    }

    public int getMaxRetryAttemps() {
        return maxRetryAttemps;
    }

    public void setMaxRetryAttemps(int maxRetryAttemps) {
        this.maxRetryAttemps = maxRetryAttemps;
    }

    int flowControlWindow;
    int maxInboundMessageSize;
    int retryBufferSize;
    int maxRetryAttemps;


}
